Fix classpath dependencies for missing service tests

Using formats-api.jar pulls in the ome-xml and jai dependencies, even
when they are excluded from the formats-bsd classpath.  If we use the
formats-api build directory instead, that prevents the extra
dependencies from being used.