fixed require unit tests