fixes #521

* Wrote test for activity started from actionbar
* Fixed issue #521
Merge pull request #536 from Catrobat/issue#521

fixes #521