implemented some tests i previously thought couldn't work
added etsts
removed unused error class