Hm, you should have 2 keys => one from the imp ghost and one from the table there, right? The table key opens the door to the SE exit.
The imp key, opened a cupboard, so you could get a diamond ring => quest item. But you need another item to fulfill this subquest => star amulet, do you have it?
Which test did you fail?