Refactor tests
Only rebuild container if BUILD_CONTAINER != ""