fixing a bug that prevented classes from being removed properly accross an axis. updating tests