Add test environment.
Changed some src.