added script for testing api and testing spa separately