Fixes for controls tests and JS Profiles tests
Adding back duration, and fail test if exception is thrown
Merge pull request #1243 from DaviRyan/FixTheTests

Fixes for controls tests and JS Profiles tests